﻿using System.Globalization;

namespace ContactSMS.Client.Converters
{
    public class SelectedLetterToColorConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string selectedItem = value as string;
            string currentText = parameter as string;
            //return selectedItem == currentText ? Colors.Green : Colors.Gray;
            return Colors.Gray;
            /*            var selectedLetter = value as string;
                        var currentLetter = parameter as string;

                        if (selectedLetter == currentLetter)
                        {
                            return Colors.Green;
                        }

                        return Colors.Gray;*/
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
